﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09Censorship
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = "Microsoft announced its next generation PHP compiler today. It is based on .NET Framework 4.0 and is implemented as a dynamic language in CLR.";
            string[] forbWords = {"PHP", "CLR", "Microsoft"};
            StringBuilder sbInput = new StringBuilder();
            sbInput.Append(input);
            for (int i = 0; i < forbWords.Length; i++)
            {
                sbInput.Replace(forbWords[i], new string('*', forbWords[i].Length));
            }
            Console.WriteLine(sbInput);
        }
    }
}
